package me.helllp.bootman.back.mapper;

import java.util.Set;

import org.apache.ibatis.annotations.Select;

import me.helllp.bootman.back.config.BootmanMapper;
import me.helllp.bootman.back.model.SusrUserRole;

public interface SusrUserRoleMapper extends BootmanMapper<SusrUserRole> {
	@Select("SELECT B.ROLE_NAME FROM susr_user_role a, susr_role b WHERE A.USER_ID = #{userId} AND A.ROLE_ID = B.ID ")
	public Set<String> selectRoleNamesByUserId(Long userId);
}